package com.computer.network.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * 权限表
 * 易错：（主键名称要生成，不然mybatis-plus无法识别主键）
 *
 * @Author cgs
 * @Date 2022/8/21 13:17
 */
public class SysRange {
  @TableField("range_id")
  @TableId("range_id")
  private long rangeId;

  private String rangeName;
  private long isMenu;
  private long isModular;
  private long isButton;
  private long superior;
  private String url;

  @TableField(exist = false)
  private boolean hasChild;


  public boolean isHasChild() {
    return hasChild;
  }

  public void setHasChild(boolean hasChild) {
    this.hasChild = hasChild;
  }

  public long getRangeId() {
    return rangeId;
  }

  public void setRangeId(long rangeId) {
    this.rangeId = rangeId;
  }


  public String getRangeName() {
    return rangeName;
  }

  public void setRangeName(String rangeName) {
    this.rangeName = rangeName;
  }


  public long getIsMenu() {
    return isMenu;
  }

  public void setIsMenu(long isMenu) {
    this.isMenu = isMenu;
  }


  public long getIsModular() {
    return isModular;
  }

  public void setIsModular(long isModular) {
    this.isModular = isModular;
  }


  public long getIsButton() {
    return isButton;
  }

  public void setIsButton(long isButton) {
    this.isButton = isButton;
  }


  public long getSuperior() {
    return superior;
  }

  public void setSuperior(long superior) {
    this.superior = superior;
  }


  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  @Override
  public String toString() {
    return "SysRange{" +
            "rangeId=" + rangeId +
            ", rangeName='" + rangeName + '\'' +
            ", isMenu=" + isMenu +
            ", isModular=" + isModular +
            ", isButton=" + isButton +
            ", superior=" + superior +
            ", url='" + url + '\'' +
            ", hasChild=" + hasChild +
            '}';
  }
}
